import { BaseNode } from "./com/BaseNode";
export class CountLoopNode extends BaseNode {
    constructor(name?: string) {
        super(name ? name : 'CountLoop')
        this.edit.out = true
        this.type = 'CountLoop'
        this.outputName = 'line'
        this.bgColor = '#67509c'
        this.addAttribute({
            name: "constent",
            value: '10',
            type: 'number',
            options: undefined
        })
        this.addInput({ key: 'line' })
        this.refresh()
    }
    getConstant() {
        const v = this.getAttribute('constent')
        if(v){
            return v
        }else{
            return {
                value: 10,
                type: 'number' as VariableType,
                name: "constent"
            }
        }
    }
}